package com.lantosec.hmrp.modules.sysdata.entity;

import java.util.Date;

import com.lantosec.hmrp.core.mvc.BaseEntity;
import com.lantosec.hmrp.modules.sysdata.vo.SysProcessHastenVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 流程催办表 实体类
 * </p>
 *
 * @author AutoCode
 * @since 2020-07-27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysProcessHasten extends BaseEntity<SysProcessHastenVO> {

    private static final long serialVersionUID = 1L;
    public SysProcessHasten(SysProcessHastenVO vo){
        this.id = vo.getId();
        this.proInsId = vo.getProInsId();
        this.taskId = vo.getTaskId();
        this.hastenUserId = vo.getHastenUserId();
        this.userId = vo.getUserId();
        this.hastenTime = vo.getHastenTime();
        this.smsNotice = vo.getSmsNotice();
        this.createTime = vo.getCreateTime();
    }

    @Override
    public SysProcessHastenVO convertToVO(){
        return new SysProcessHastenVO(this);
    }


    /**
     * Id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 流程实例Id
     */
    private String proInsId;

    /**
     * 任务Id
     */
    private String taskId;

    /**
     * 催办用户Id
     */
    private String hastenUserId;

    /**
     * 操作用户Id
     */
    private String userId;

    /**
     * 催办时间
     */
    private Date hastenTime;

    /**
     * 是否短信通知（0 否，1 是）
     */
    private Integer smsNotice;

    /**
     * 创建时间
     */
    private Date createTime;


    public enum ColName {
        id, pro_ins_id, task_id, hasten_user_id, user_id, hasten_time, sms_notice, create_time,
    }
}
